﻿<UserControl x:Name="userControl" x:Class="ContextMenuItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="26" Background="#194D4D4D" FontFamily="Segoe UI Light" Cursor="Hand">
	<UserControl.Resources>
		<Storyboard x:Key="OnMouseEnter1">
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="userControl">
				<EasingColorKeyFrame KeyTime="0:0:0.3" Value="#7F3C3C3C">
					<EasingColorKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseInOut"/>
					</EasingColorKeyFrame.EasingFunction>
				</EasingColorKeyFrame>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnMouseLeave1">
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="userControl">
				<EasingColorKeyFrame KeyTime="0:0:0.3" Value="#194D4D4D">
					<EasingColorKeyFrame.EasingFunction>
						<CircleEase EasingMode="EaseInOut"/>
					</EasingColorKeyFrame.EasingFunction>
				</EasingColorKeyFrame>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard x:Name="OnMouseLeave1_BeginStoryboard" Storyboard="{StaticResource OnMouseLeave1}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard Storyboard="{StaticResource OnMouseEnter1}"/>
		</EventTrigger>
	</UserControl.Triggers>
    <Grid>
        <TextBlock x:Name="Title" HorizontalAlignment="Center" Margin="5,0" TextWrapping="NoWrap" Text="ContextMenuItem" VerticalAlignment="Center" Foreground="#FFF7F7F7" FontFamily="Segoe UI Light" FontSize="14"/>
    </Grid>
</UserControl>
